<template>
  <div class="singer">
    <div class="head" :style="{backgroundImage:'url('+head+')'}"></div>
    <div class="body">
      <div>{{ name }}
        &nbsp;
        <svg class="icon" aria-hidden="true" v-show="attestation">
          <use xlink:href="#icon-Vrenzheng"></use>
        </svg>
      </div>
      <div>{{ heat }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Singer",
  props: ["name", "fans", "playCount", "head", "attestation"],
  computed: {
    heat() {
      return this.fans + "万粉丝 · " + this.playCount + "万播放";
    }
  },
  description: {
    // 歌手
  }
}
</script>

<style scoped lang="less">
@import url("@/assets/less/1.less");

.singer {
  /*width: 310px;
  height: 200px;*/
  /*border: 1px solid pink;*/
  display: flex;
  flex-direction: row;
  justify-content: flex-start;

  .head {
    width: 48px;
    height: 48px;
    background-color: @bc;
    background-repeat: no-repeat;
    background-size: 48px;
    border-radius: 12px;
    border: none;
    margin-right: 20px;
  }

  .body {
    div {
      svg {
        .icon-min(18px, #54a6f8);
      }
    }

    div:first-child {
      color: @fcc;
    }

    div:last-child {
      color: @fbc;
    }
  }

  /*div :first-child {
    width: 146px;
    height: 146px;
    background-color: @bc;
    background-repeat: no-repeat;
    border-radius: 32px;
    border: none;
    overflow: hidden;
    transition: all 300ms cubic-bezier(.02, .01, .47, 1);

    &:hover {
      // 阴影类型 X轴位移 Y轴位移 阴影大小 阴影扩展 阴影颜色
      box-shadow: 0 0 30px rgba(48, 55, 66, .6);
      transform: translate(0, -7px) scale(1.1, 1.1);
      //transform: scale(1.1, 1.1);
      transition-delay: 0s;
    }
  }

  div :nth-child(2) {
    color: @ffc;
  }

  div :nth-child(3) {
    color: @fbc;
  }*/


}
</style>
